﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TBlog.Web.Models;

namespace TBlog.Web.Common.PageHelper
{
    public class PagedList<T> where T : BaseEntity
    {
        /// <summary>
        /// 当前页码
        /// </summary>
        public int CurrentPage { get; set; }
        /// <summary>
        /// 每页记录数
        /// </summary>
        public int ItemsPerPage { get; set; }
        /// <summary>
        /// 总页数
        /// </summary>
        public int TotalPages { get; set; }
        /// <summary>
        /// 总记录数
        /// </summary>
        public int TotalCount { get; set; }
        /// <summary>
        /// 结果集
        /// </summary>
        public List<T> Items { get; set; }
    }
}